using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace CardControl
{
   public partial class CardControl : UserControl
   {
      public CardControl()
      {
         InitializeComponent();
      }

      public bool SetImage(String image)
      {
         System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CardControl));
         this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject(image)));
         //MessageBox.Show(GetImage());
         return true;
      }

      internal string GetImage()
      {
         return this.pictureBox1.ToString();
      }

      private int m_mainFormIndex;
      

      public int MainFormIndex
      {
         get { return m_mainFormIndex; }
         set { m_mainFormIndex = value; }
      }
	
   }
}